package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.Alias;

import javax.persistence.*;
import java.util.Date;

@Data
@Alias(value = "dmcDeviceAlert")
@Table(name = "cn_dmc_device_alert")
@EqualsAndHashCode(callSuper = true)
public class DmcDeviceAlert extends BaseEntity {

    private static final long serialVersionUID = -1049575041295281818L;

    /**
     * 设备Id
     */
    @Column(name = "device_id")
    private Long deviceId;

    /**
     * 设备编号
     */
    @Column(name = "device_no")
    private String deviceNo;

    /**
     * 老人Id
     */
    @Column(name = "oldman_id")
    private Integer oldmanId;

    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 报警位置
     */
    private String location;

    /**
     * 警报类型  0-紧急警报 1-范围警报 2-紧急按钮 3-人体感应 4-门禁警报 5-孝心手环 6-(日创床垫)从床上跌倒 7-(日创床垫)呼吸停止 8-(日创床垫)翻身
     */
    @Column(name = "alert_type")
    private Integer alertType;

    /**
     * 报警信息
     */
    @Column(name = "alert_info")
    private String alertInfo;

    /**
     * 是否已查看 0-待查看 1-已查看
     */
    @Column(name = "is_read")
    private Boolean isRead;

    /**
     * 是否已处理 0-待处理 1-已处理
     */
    @Column(name = "is_handle")
    private Boolean isHandle;

    /**
     * 评价星级 1 - 5
     */
    private Integer evaluate;

    /**
     * 处理状态 0-未完成 1-已完成 2-其他情况
     */
    @Column(name = "handle_status")
    private Integer handleStatus;

    /**
     * 处理描述
     */
    @Column(name = "handle_remark")
    private String handleRemark;

    /**
     * 播放次数
     */
    @Column(name = "play_times")
    private Integer playTimes;

    /**
     * 设备所属	机构
     */
    @Column(name = "group_id")
    private Long groupId;

    /**
     * 班组Id
     */
    @Column(name = "nursing_group_id")
    private Long nursingGroupId;

    /**
     * 会话id
     */
    @Column(name = "event_id")
    private String eventId;

}